package com.kanche.bigbaby.bean;

import org.json.*;

import java.io.Serializable;


public class User implements Serializable {
	
    private String gender;
    private String mobile;
    private boolean enabled;
    private String id;
    private Merchant merchant;
    private Address address;
    private SubstituteUser substituteUser;
    private String createAt;
    private UserGroup userGroup;
    private String name;
    
    
	public User () {
		
	}	
        
    public User (JSONObject json) {
    
        this.gender = json.optString("gender");
        this.mobile = json.optString("mobile");
        this.enabled = json.optBoolean("enabled");
        this.id = json.optString("id");
        this.merchant = new Merchant(json.optJSONObject("merchant"));
        this.address = new Address(json.optJSONObject("address"));
        this.substituteUser = new SubstituteUser(json.optJSONObject("substituteUser"));
        this.createAt = json.optString("createAt");
        this.userGroup = new UserGroup(json.optJSONObject("userGroup"));
        this.name = json.optString("name");

    }
    
    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public boolean getEnabled() {
        return this.enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Merchant getMerchant() {
        return this.merchant;
    }

    public void setMerchant(Merchant merchant) {
        this.merchant = merchant;
    }

    public Address getAddress() {
        return this.address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public SubstituteUser getSubstituteUser() {
        return this.substituteUser;
    }

    public void setSubstituteUser(SubstituteUser substituteUser) {
        this.substituteUser = substituteUser;
    }

    public String getCreateAt() {
        return this.createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public UserGroup getUserGroup() {
        return this.userGroup;
    }

    public void setUserGroup(UserGroup userGroup) {
        this.userGroup = userGroup;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }


    
}
